const { defineConfig } = require('@vue/cli-service');

module.exports = defineConfig({
  transpileDependencies: true,
  devServer: {
    client: {
      overlay: {
        runtimeErrors: (error) => {
          // 忽略特定的 ResizeObserver 错误
          if (
              error.message.includes("ResizeObserver loop completed with undelivered notifications")
          ) {
            return false;
          }
          return true; // 其他错误仍然显示
        }
      }
    }
  }
});